#include "GlobalInfo.h"
#include "x51AppMgr.h"

CGlobalInfo* CGlobalInfo::m_global_info = nullptr;
CGlobalInfo::CGlobalInfo()
	:m_main_hwnd(NULL)
{
}

CGlobalInfo::~CGlobalInfo()
{

}

CGlobalInfo* CGlobalInfo::GetInstance()
{
	if (m_global_info == nullptr)
	{
		m_global_info = new CGlobalInfo();
	}

	return m_global_info;
}

void CGlobalInfo::Clear()
{
	if (m_global_info)
	{
		delete m_global_info;
		m_global_info = nullptr;
	}
}
